//
//  SinaHomeComposeButton.m
//  MySinaWeiboProjectForOC
//
//  Created by apple on 2016/11/25.
//  Copyright © 2016年 WangChen. All rights reserved.
//

#import "SinaHomeComposeButton.h"

@interface SinaHomeComposeButton ()

@end

@implementation SinaHomeComposeButton

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        [self setTitleColor:[UIColor grayColor] forState:UIControlStateNormal];
        [self setTitleColor:[UIColor lightGrayColor] forState:UIControlStateHighlighted];
        self.titleLabel.font = [UIFont systemFontOfSize:18];
        self.titleLabel.textAlignment = NSTextAlignmentCenter;
    }
    return self;
}

-(CGRect)imageRectForContentRect:(CGRect)contentRect{
    return CGRectMake(0, 0, kComposeBtnW, kComposeBtnW);
}

-(CGRect)titleRectForContentRect:(CGRect)contentRect{
    return CGRectMake(0, kComposeBtnW, kComposeBtnW, kComposeBtnH - kComposeBtnW);
}

@end
